import vnode from "./vnode"

export default function (tag, props, children) {
    // 1. 判断第三个参数
    if (typeof children === "string") {
        // 字符串处理
        return vnode(tag, props, undefined, children, undefined);
    } else if (Array.isArray(children)) {
        // 数组处理
        return vnode(tag, props, children, undefined, undefined)
    }
}